<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <base href="<?php echo base_url(); ?>"/>	

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>Khuyến Mãi</title>
        <!-- FILE CSS -->
        <link rel="stylesheet" type="text/css" media="all" href="resources/home/css/incentives.css" />
        <link rel="stylesheet" type="text/css" media="all" href="resources/home/css/reset.css" />
        <link rel="stylesheet" type="text/css" media="all" href="resources/home/css/960.css" />
        <link rel="stylesheet" type="text/css" media="all" href="resources/home/css/style.css" />
        <link rel="stylesheet" type="text/css" media="all" href="resources/home/css/search_style.css" />
        <link rel="stylesheet" href="resources/home/css/screen_ivivu.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="resources/home/css/superfish.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="resources/home/css/cupertino/jquery-ui-1.9.2.custom.min.css" />
        <link rel="stylesheet" type="text/css" href="resources/home/css/compare.css" />        

        <!-- FILE SCRIPT -->
        <script type="text/javascript" src="resources/home/scripts/jquery.1.7.2.min.js"></script>
		<script type="text/javascript" src="resources/home/scripts/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="resources/home/scripts/jquery.datePicker.js"></script>         
		<script type="text/javascript" src="resources/home/scripts/jquery.date.js"></script>
		<script type="text/javascript" src="resources/home/scripts/jquery-ui-1.9.2.custom.min.js"></script>        

    </head>
    <body >
        <div class="subbg">
            <div class="subheader">
                <div class="container_16">
                    <!--LOGO -->
                    <div class="grid_5"> 
                        <a href="index.php/home"><img src="resources/home/images/logo.png" alt="DesignPlus" class="pngfix logo"/></a>
                    </div>
                    <!--MENU -->
                    <div class="grid_11">
                        <div class="top-menu pngfix">
                            <ul class="sf-menu">
                                <li> <a href="<?php echo site_url('home'); ?>">Trang chủ</a> </li>
                                <li> <a href="<?php echo site_url('GioiThieu'); ?>">Giới thiệu</a> </li>
                                <li class="current"> <a href="<?php echo current_url(); ?>">Khuyến mãi</a></li>
                                <li> <a href="<?php echo site_url('nhacungcap'); ?>">Đối tác</a> </li>
                                <li> <a href="<?php echo site_url('LienHe'); ?>">Liên hệ - Hỗ trợ</a> </li>
                            </ul>
                            <span class="rightcorner pngfix"></span> 
                        </div>
                    </div>

                    <div class="clear">&nbsp;</div>

                    <!--SEARCH FORM-->
                    <div class="grid_16">
                        <div id="listsosanh">
                            <?php $this->load->view('home/danhsach_sosanh_view'); ?>
                        </div>

                        <div class="searchform">
                            <div class="header_02">
                                <div class="moduletable">
                                    <div class="layout_search_page"><div id="from_search_booking" class='vi'>

                                            <div id="archor_search" style="position: absolute; top: 10px;"></div>
                                            <div class="wrap"></div>
                                            <?php $this->load->view('home/timkiem_view'); ?>                                            
                                            
                                        </div>

                                    </div><!--End moduleTable-->

                                </div><!--End Header_02-->
                                <!--<p>Khu vực đặt khung search</p>-->
                            </div><!--End Header_02-->
                        </div>
                    </div> <!-- END SEARCH FORM-->
                </div>
            </div><!--end:header -->
            <div class="clear">&nbsp;</div>

            <!-- CONTENT -->
            <div class="container_16">
                <div id="layout_incentives">
                    <div id="incentive_content" class="inner_incentives">
                        <div id="tvt_promotion_detail">
                            <h1>Ưu đãi tuyệt vời chỉ có tại i12</h1>
                            <p><b style="color: #016bb5;"><i>i12</i></b> hân hạnh gởi đến bạn thông tin những ưu đãi giúp cho chuyến đi của bạn đã vui còn thêm tiết kiệm. Nếu bạn đã sẵn sàng cho một chuyến đi thì còn chờ gì nữa mà không chớp lấy những ưu đãi tuyệt vời này.</p>
                        </div>
                        <div style="clear:both;"></div>
                        <div id="tvt_wrap">
                            <div id="tvt_left_wrap">
                                <b class="title_general">Trong nước</b>
                                <ul>
                                    <?php
                                    foreach ($Tinh_Thanh as $r) {
                                        $ten_tinh = $r->Tinh_ThanhPho;
                                        echo "<li class='city_item' ten_tinh='$ten_tinh' />$ten_tinh</li>";
                                    }
                                    ?>
                                </ul>
                                <br>
                                    <br>
                                        <b class="title_general">Quốc Gia</b>
                                        <ul>
                                            <?php
                                            foreach ($QuocGia as $r) {
                                                $ten_quocgia = $r->QuocGia;
                                                echo "<li class='city_item' ten_quocgia='$ten_quocgia' />$ten_quocgia</li>";
                                            }
                                            ?>

                                        </ul>
                                        </div>
                                        <div id="tvt_right_wrap">
                                            <div style="clear:both;"></div>
                                            <div id="main">
                                                <div id="loading"></div>
                                                <div id="data"></div>
                                                <script type="text/javascript">
                                                    jQuery(document).ready(function() {
	
                                                        load_data();
                                                        function load_data() {
                                                            jQuery('#loading').html("<center><img src='<?php echo base_url('resources/home/images/loading.gif'); ?>'/></center>").fadeIn('fast'); 
                                                            jQuery.ajax({
                                                                type: "POST",
                                                                url: "<?php echo site_url('khuyenmai/LayTatCaKM') ?>",
                                                                success: function(data_log) {
                                                                    jQuery('#loading').fadeOut('fast');
                                                                    jQuery("#data").html(data_log);
                                                                }
                                                            })
                                                        }
												
												
                                                        jQuery("#tvt_left_wrap ul li").click(function() {
                                                            var ten_quocgia = jQuery(this).attr("ten_quocgia");
                                                            var ten_tinh = jQuery(this).attr("ten_tinh");
                                                            if(ten_quocgia){                                                     
                                                            	jQuery("#tvt_promotion_detail").html("<h1>Khách sạn ưu đãi tại "+ ten_quocgia +"</h1>");                                                                                	                            
                                                                jQuery('#loading').html("<center><img src='<?php echo base_url('resources/home/images/loading.gif'); ?>' /></center>").fadeIn('fast');
                                                                jQuery("#main").slideUp().delay(400).slideDown();
                                                                jQuery.ajax({
                                                                    type: "POST",
                                                                    url: "<?php echo site_url('khuyenmai/LayKMTheoQuocGia') ?>",
                                                                    data: "ten_quocgia="+ ten_quocgia,
                                                                    success: function(get_data) {
                                                                        jQuery('#loading').fadeOut('fast');
                                                                        jQuery("#data").empty().append(get_data);
                                                                    }
                                                                });
                                                            } else{
                                                            	jQuery("#tvt_promotion_detail").html("<h1>Khách sạn ưu đãi tại "+ ten_tinh +"</h1>");
                                                                jQuery('#loading').html("<center><img src='<?php echo base_url('resources/home/images/loading.gif'); ?>'/></center>").fadeIn('fast');
                                                                jQuery("#main").slideUp().delay(400).slideDown();
                                                                jQuery.ajax({
                                                                    type: "POST",
                                                                    url: "<?php echo site_url('khuyenmai/LayKMTheoTinhThanhTrongNuoc') ?>",
                                                                    data: "ten_tinh="+ ten_tinh,
                                                                    success: function(get_data) {
                                                                        jQuery('#loading').fadeOut('fast');
                                                                        jQuery("#data").empty().append(get_data);
                                                                    }
                                                                });
                                                            }
                                                        });
												
                                                    });
                                                </script>
                                            </div>
                                        </div>
                                        </div>
                                        </div>
                                        </div>
                                        </div>

                                        <div class="clear"></div>
                                        <br>
                                            <br>
                                                <!-- FOOTER -->
                                                <div class="footer">
                                                    <div class="container_16">
                                                        <!--LEFT -->
									                    <div class="footer_left">
								                        <!--start:footer left part-->
									                        <p> &copy; Copyright 2012 <a href="index.php/home" target="_blank">i12 Online Booking | N12~SuperStar</a></p>
									                    </div>
                                                        <!--RIGHT-->
                                                        <div class="footer_right">
                                                            <p>Designed and Developed by <a href="http://www.themeflash.com" target="_blank">Themeflash.com</a></p>
                                                        </div><!--end:footer right part-->
                                                    </div><!--end:footer container -->
                                                </div><!--end:footer -->

                                                <center>Design Downloaded from <a href="http://www.template4all.com/" title="free website templates" target="_blank">Free Website Templates</a> | <a href="http://www.freethemes4all.com/" title="free css templates" target="_blank">free css templates</a> | <a href="http://www.seodesign.us" title="free psd files" target="_blank">Free PSD Files</a></center>
                                               
	</body>
</html>